package com.bll.imple.honourAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.HonourBean;
import com.bean.MymienBean;
import com.bll.Action;
import com.dao.HonourDao;

public class UpdateHonourAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		String lujing = request.getParameter("lujing");
		String values[] = request.getParameterValues("cbx");
		int id;
		if (values != null && values.length != 0) {
			for (int i = 0; i < values.length; i++) {
				id=Integer.parseInt(values[i]);
				HonourDao dao=new HonourDao();
				HonourBean bean= dao.selectById(id);
				request.setAttribute("bean", bean);
			}
		}
		return lujing;
	}

}
